import request from '@/utils/request'
import { getToken } from '@/utils/auth'
import { param } from '@/utils/index'

// 出入库单关联商品分页
export function pagingStockGoods(query) {
  return request({
    url: 'warehouse/warehouseStockGoods/pagingStockGoods',
    method: 'get',
    params: query
  })
}

// 出入库单商品导出
export function doExportStockGoods(query) {
  return process.env.BASE_API + '/warehouse/warehouseStockGoods/doExportStockGoods?' + param(query) + '&accessToken=' + getToken()
}
